<?php
//
// +---------------------------------------------------------------------------------+
// | Package: EezeeSite Core                                                         |
// +---------------------------------------------------------------------------------+
// | Copyright (C) 2006  EezeeSite Development Team                                  |
// +---------------------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or                   |
// | modify it under the terms of the GNU General Public License                     |
// | as published by the Free Software Foundation; either version 2                  |
// | of the License, or (at your option) any later version.                          |
// |                                                                                 |
// | This program is distributed in the hope that it will be useful,                 |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                  |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                   |
// | GNU General Public License for more details.                                    |
// |                                                                                 |
// | You should have received a copy of the GNU General Public License               |
// | along with this program; if not, write to the Free Software                     |
// | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA. |
// +---------------------------------------------------------------------------------+
// | Author: Mayukh De <mayukhde@gmail.com>                                          |
// +---------------------------------------------------------------------------------+
//

class ESDisplay extends Smarty
{
    function ESDisplay($lang)
    {
        $siteTitle = ($GLOBALS['ES']['CLIENTCONF']['site_title']) ? $GLOBALS['ES']['CLIENTCONF']['site_title'] : 'EezeeSite v'.$GLOBALS['ES']['VERSION'];
        $catchLine = ($GLOBALS['ES']['CLIENTCONF']['catch_line']) ? $GLOBALS['ES']['CLIENTCONF']['catch_line'] : 'PHP Powered Web 2.0 Framework';
        $this->template_dir = $_SERVER['DOCUMENT_ROOT'].'/../tpl/'.$lang.'/';
        $this->compile_dir = $_SERVER['DOCUMENT_ROOT'].'/../temp/compiled/';
        $this->cache_dir = $_SERVER['DOCUMENT_ROOT'].'/../temp/cached/';
        $this->caching = false;
		$ESSITEVARS = array(
		                   'ENCODING'  => $GLOBALS['ES']['LANG']['ENCODING'],
						   'AUTHOR'    => 'EezeeSite '.$GLOBALS['ES']['VERSION'],
						   'BASEURL'   => ES_BASE_URL,
						   'ASSETSURL' => ES_ASSETS_URL,
                           'JSURL'     => ES_JS_URL,
                           'THEMEURL'  => ES_THEME_URL,
                           'ICOURL'    => ES_ICO_URL,
                           'ESLOGOSRC' => '<img src="'.ES_BASE_URL.'?logo=true" width="100" height="20" border="0" alt="powered by EezeeSite v'.$GLOBALS['ES']['VERSION'].'" title="powered by EezeeSite v'.$GLOBALS['ES']['VERSION'].'" />',
                           'SITETITLE' => $siteTitle,
                           'CATCHLINE' => $catchLine
		                   );
		$this->assign('ESSITEVARS', $ESSITEVARS);
		return;
    }
}

?>